package com.yangfan.springcloud.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 开启 feign的日志
 * <p>
 * 默认  NONE
 * NONE, 不打印任何信息
 * BASIC,
 * HEADERS,
 * FULL; 打印最全的
 */
@Configuration
public class FeignConfig {

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

}
